home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 117
/
FreelogNo117-OctobreNovembre2013.iso
/
Programmation
/
jedit
/
jedit5.1.0install.exe
/
{app}
/
macros
/
Emacs
/
Emacs_Exchange_Point_and_Mark.bsh
< prev
next >
Wrap
Text File
|
2013-07-28
|
454b
|
22 lines
/**
* Emulate GNU Emacs's "exchange-point-and-mark" capability.
* Does NOT use jEdit markers.
*/
source (MiscUtilities.constructPath(dirname(scriptPath), "EmacsUtil.bsh"));
void emacsExchangePointAndMark()
{
int mark = getMark (buffer);
if (mark == -1)
{
beep();
return;
}
int point = textArea.getCaretPosition();
setMark (buffer, point);
textArea.setCaretPosition (mark);
}
emacsExchangePointAndMark();